package com.game;

import android.database.Cursor;
import android.util.Log;

public class ViewGameActivity extends ViewTableActivity {

	@Override
	protected void initalize() {
		setContentView(R.layout.dblistmain);
		myTable = "game";
		layoutId = R.layout.viewgame;
		TO_ITEM= new int[] { R.id.g_rowId, R.id.g_rowGameName,
				R.id.g_rowGameDesc, R.id.g_rowGameInstr };

	}

	@Override
	protected String getItemName(int Id) {
		Cursor nameCursor = myDBAdapter.getGameByIdCursor(Id);
		startManagingCursor(nameCursor);
		nameCursor.moveToFirst();
		return nameCursor.getString(nameCursor.getColumnIndex(DBAdapter.GAME_NAME));
	}
}
